package app

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

func Log() gin.HandlerFunc { // todo 设置一个中间件方法
	return func(c *gin.Context) {
		fmt.Println("===> log===>")
		c.Next()
		fmt.Println("===> log end ===>")
	}
}